
package com.example.sharding.enerty;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
* <p>
* 订单表
* </p>
*
* @author 杨二狗
* @since 2022-03-06 15:10:34
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TOrder对象", description="订单表")
@TableName("t_order")
public class TOrder implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "主键Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @ApiModelProperty(value = "数量")
    @TableField(value = "count")
    private Short count;


    @ApiModelProperty(value = "金额")
    @TableField(value = "money")
    private BigDecimal money;


    @ApiModelProperty(value = "产品id")
    @TableField(value = "product_id")
    private Long productId;


    @ApiModelProperty(value = "订单状态：0：创建中1：已完结")
    @TableField(value = "status")
    private Short status;


    @ApiModelProperty(value = "用户id")
    @TableField(value = "user_id")
    private Long userId;

}